package yf.mall.vo;

import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

@Getter
@Setter
public class CourseSumVo {

    private Integer status;

    private String name;

    private Integer number;

    private Long courseId;

    public CourseSumVo(String name, Integer number, Long courseId,Integer status) {
        this.name = name;
        this.number = number;
        this.courseId = courseId;
        this.status = status;
    }





    public void add(){
        this.number ++ ;
    }

//    public static Map<Long,CourseSumVo> getMap(List<CourseSumVo> courseSumVos){
//        return courseSumVos.stream().collect(Collectors.toMap(CourseSumVo::getId,CourseSumVo->CourseSumVo));
//    }
}
